﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:app="clr-namespace:AssignmentsManage"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    
    <ControlTemplate x:Key="ButtonImageTopStyle" TargetType="Button">
        <Border Width="Auto" Name="borderMain" Background="#01FFFFFF">
            <ContentPresenter Name="contentArea" />
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
            </Trigger>
            <Trigger Property="IsPressed" Value="true">
                <Trigger.Setters>
                    <Setter TargetName="contentArea" Property="Effect">
                        <Setter.Value>
                            <DropShadowEffect Color="Black" ShadowDepth="0" BlurRadius="6" />
                        </Setter.Value>
                    </Setter>
                </Trigger.Setters>
            </Trigger>
            <Trigger Property="IsDefault" Value="true">
                <Trigger.Setters>
                    <Setter TargetName="contentArea" Property="Effect">
                        <Setter.Value>
                            <DropShadowEffect Color="Black" ShadowDepth="0" BlurRadius="6" />
                        </Setter.Value>
                    </Setter>
                </Trigger.Setters>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>

    <ControlTemplate x:Key="ButtonTopStyle" TargetType="Button">
        <Border Width="Auto" Name="borderMain" Background="#01FFFFFF">
            <TextBlock Name="contentArea" VerticalAlignment="Center" HorizontalAlignment="Center" Margin="10" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content}" />
        </Border>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="true">
                <Setter TargetName="contentArea" Property="Foreground">
                    <Setter.Value>
                        <SolidColorBrush Color="{StaticResource AreaHeaderForegroundBrushMouseOverColor}" />
                    </Setter.Value>
                </Setter>
            </Trigger>
            <Trigger Property="IsPressed" Value="true">
                <Trigger.Setters>
                    <Setter TargetName="contentArea" Property="Foreground">
                        <Setter.Value>
                            <SolidColorBrush Color="{StaticResource AreaHeaderForegroundBrushMouseOverColor}" />
                        </Setter.Value>
                    </Setter>
                    <Setter TargetName="contentArea" Property="Effect">
                        <Setter.Value>
                            <DropShadowEffect Color="Black" ShadowDepth="0" BlurRadius="6" />
                        </Setter.Value>
                    </Setter>
                </Trigger.Setters>
            </Trigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
</ResourceDictionary>